﻿using Omabar.Entity;
using Omabar.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omabar.BLL
{
    public class Theme_BLL
    {
        private readonly Theme_Entity entity;
        public Theme_BLL()
        {
            entity = new Theme_Entity();
        }

        public int GetCount(string sql)
        {
            return entity.GetCount(sql);
        }

        public RESP_Info ExecuteSQL(string sql)
        {
            return entity.ExecuteSQL(sql);
        }

        public RESP_Info Add(THEME model)
        {
            return entity.Add(model);
        }

        public RESP_Info Update(THEME model)
        {
            return entity.Update(model);
        }

        public RESP_Info Delete(THEME hotel)
        {
            return entity.Delete(hotel);
        }

        public THEME GetModel(string id)
        {
            return entity.GetModel(id);
        }

        public THEME GetModelBySQL(string sql)
        {
            return entity.GetModelBySQL(sql);
        }

        public List<THEME> GetModels(string sql)
        {
            return entity.GetModels(sql);
        }
    }
}
